package demo.java.springboot.property;

import javax.annotation.Resource;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PropertyController {
	private static Logger LOG = LogManager.getLogger(PropertyController.class);
	
	@Resource
	private JdbcParams jdbc;
	
	@GetMapping("/jdbc")
	JdbcParams getJdbc () {
		return jdbc; 
	}
	
	@Resource
	private User user;
	
	@GetMapping("/user")
	User getUser () {
		return user; 
	}
}
